/**
  CNOK project, Anyang Normal University, IMP-CAS
  \class TATest
  \brief Just to accommodate catch2 to facilitate unit test.
  It takes forever to compile this class. So normally leave this file alone.
  \author SUN Yazhou, asia.rabbit@163.com
  \since 2020/09/07
  \date Last modified: 2020/09/07 by SUN Yazhou
  \copyright 2020-2023 SUN Yazhou
  \copyright CNOK project, Anyang Normal University, IMP-CAS
*/

#define CATCH_CONFIG_RUNNER

#include "TATest.h"
#include "config.h"
#ifdef CATCH_CNOK
#include "catch.h"
#else
#include "TAException.h"
#endif


int TATest::test(int argc, char *argv[]){
#ifdef CATCH_CNOK
  return Catch::Session().run(argc, argv);
#else
  TAException::Warn("TATest", "test: unittest -- catch -- not enabled");
  return -1;
#endif
} // end member function test
